﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Web.Services;

namespace WebNormal
{
    public partial class PrintDraw : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [WebMethod]
        public static DataTable queryShipSetting()
        {
            DataTable dt= new DataTable("table1");
            dt.Columns.Add("fielddesc",Type.GetType("System.String"));
            dt.Columns.Add("fieldname",Type.GetType("System.String"));
            dt.Columns.Add("posx",Type.GetType("System.String"));
            dt.Columns.Add("posy",Type.GetType("System.String"));
            dt.Columns.Add("fontfamily",Type.GetType("System.String"));
            dt.Columns.Add("fontsize",Type.GetType("System.String"));
            dt.Columns.Add("posalign",Type.GetType("System.String"));
            dt.Columns.Add("islock",Type.GetType("System.String"));
            dt.Columns.Add("selected",Type.GetType("System.String"));

            dt.Rows.Add(new object[]{"A","B","10","10","宋体","12","left","0","0"});
            //dt.Rows.Add(new object[]{"C","D","20","10","12","left","0","0"});
            //dt.Rows.Add(new object[]{"E","F","30","10","12","left","0","0"});


            return dt;
            //    function queryShipSetting_success(result) {
            //var rows = result.rows;
            //for (var i = 0; i < rows.length; i++) {
                
            //    ArrFields[i] = new Object()
            //    ArrFields[i].text = rows[i]["fielddesc"];
            //    ArrFields[i].fieldName = rows[i]["fieldname"];
            //    ArrFields[i].posx = rows[i]["posx"];
            //    ArrFields[i].posy = rows[i]["posy"];
            //    ArrFields[i].fontfamily = rows[i]["fontfamily"];
            //    ArrFields[i].fontsize = rows[i]["fontsize"];
            //    ArrFields[i].posalign = rows[i]["posalign"];
            //    ArrFields[i].islock = rows[i]["islock"];
            //    ArrFields[i].selected = rows[i]["selected"];
            //    ArrFields[i].created = false;
    }
    }
}
